#ifndef _BRICK_H_
#define _BRICK_H_

#include <d3dx9.h>

#include "sprite.h"
#include "picture.h"
#include "objects.h"
#include "mushroom.h"
#include "jumpingCoin.h"
#include "star.h"
#include "mushroom.h"
#include "star.h"
#include "pieceBrick.h"

extern CMushroom * mushroom;
extern CStar * star;
extern CJumpingCoin * jumpingCoin;
extern CPieceBrick *pa1, *pa2, *pa3, *pa4;
extern CPieceBrick *pb1, *pb2, *pb3, *pb4;

class CBrick : public CObjects
{
public:
	CBrick();
	CBrick(int World,int,int Contain,float,float);
	~CBrick();
	int kind;
	int type;
	int contain;
	virtual void Hitted(CObjects *);
	virtual void Die();
	virtual void Update(int t);
	virtual void RenderFrame(LPDIRECT3DDEVICE9 d3ddv, int t);
};
#endif